<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.console.servlets.financial.ptzjgl.PtxlbjyjlList"%>
<%@page import="com.blockchain.console.service.trading.entity.XlbEntity"%>
<%@page import="com.blockchain.console.servlets.financial.ptzjgl.PtxlbglList"%>
<%@page import="com.blockchain.console.servlets.financial.AbstractFinancialServlet"%>
<%@page import="com.blockchain.console.servlets.financial.ptzjgl.PtzjglList"%>
<%@page import="com.blockchain.console.service.financial.entity.PtzjglRecord"%>
<%@page import="com.blockchain.console.service.financial.entity.Ptzjgl"%>
<%@page import="com.blockchain.common.enums.PlatformFundType"%>
<html>
<head>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%
	CURRENT_CATEGORY = "CWGL";
	CURRENT_SUB_CATEGORY = "PTXLBGL";
	PagingResult<Ptzjgl> result = (PagingResult<Ptzjgl>) request
			.getAttribute("result");
XlbEntity [] xlbs=(XlbEntity[])request.getAttribute("xlb");
%>
<body>
	<%@include file="/WEB-INF/include/header.jsp"%>
	<div class="w_main">
		<div class="main clearfix">
			<div class="wrap">
				<div class="r_main">
					<form action="<%=controller.getURI(request, PtxlbglList.class) %>" name="form1" method="post" id="searchForm">
						<div class="home_main">
							<div class="box box1 mb15">
								<div class="atil">
									<h3>平台虚拟币账户信息</h3>
								</div>
							</div>
							<div class="box box1 mb15">
								<div class="con">
								 <div class="admin_input admin_pb">
           							<div class="table">	
											<P>
												<span>币种：</span>
												<select name="bid" class="yhgl_sel" >
														<option>请选择</option>
														<%if(xlbs!=null){for (XlbEntity s: xlbs) {%>
														<option value="<%=s.id%>" <%if (s.id==IntegerParser.parse(request.getParameter("bid"))) {%> selected="selected" <%}%>><%StringHelper.filterHTML(out,s.zwm);%>（<%StringHelper.filterHTML(out,s.ywjc);%>）</option>
														<%}}%>
												</select>
											</P>
								</div>
								<div class="mt10">   
                   				<input name="search" type="submit" class="btn2 mr10" value="搜索" />
                   				</div> 
                   				<div class="clear"></div>           
								</div>
								</div>
							</div>
							<table width="100%" border="0" cellspacing="0" cellpadding="3" class="yhgl_table tc">
								<tr class="hsbg">
									<td>序号</td>
									<td>币种</td>
									<td>账户总额</td>
									<td>收入总额</td>
									<td>支出总额</td>
									<td>操作</td>
								</tr>
								<%
									Ptzjgl[] records=result.getItems();
									if(records!=null)
									{
										int i=1;
										for(Ptzjgl record:records)
										{
											if(record==null)
											{
												continue;
											}
								%>
								<tr class="dhsbg">
									<td><%=i++ %></td>
									<td><%StringHelper.filterHTML(out, record.b_zwm);%>/<%StringHelper.filterHTML(out, record.b_ywm);%></td>
									<td><%=Formater.formatAmount_6(record.platformAmount)%></td>
									<td><%=Formater.formatAmount_6(record.totalIncome) %></td>
									<td><%=Formater.formatAmount_6(record.totalReplay) %></td>
									<td>
									<%if (blockchainSession.isAccessableResource(PtxlbjyjlList.class)) {%>
                          			<span class="blue"><a href="<%=controller.getURI(request,PtxlbjyjlList.class)%>?bid=<%=record.bid%>" class="mr10">交易记录</a></span>
                          			<%}%>
                          			</td>
								</tr>
								<%}}%>
							</table>
							<%AbstractFinancialServlet.rendPagingResult(out, result); %>
							<div class="box2 clearfix"></div>
						</div>
					</form>
				</div>
			</div>
			<%@include file="/WEB-INF/include/left.jsp"%>
		</div>
	</div>
	<%@include file="/WEB-INF/include/footer.jsp"%>
	<%@include file="/WEB-INF/include/script.jsp"%>
	<script type="text/javascript"
		src="<%=controller.getStaticPath(request)%>/js/validation.js"></script>
	<%@include file="/WEB-INF/include/datepicker.jsp"%>
	<script type="text/javascript">
		$(function() {
			$("#datepicker1").datepicker({inline: true});
		    $('#datepicker1').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker2").datepicker({inline: true});
		    $('#datepicker2').datepicker('option', {dateFormat:'yy-mm-dd'});
		    $("#datepicker1").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("startPayTime"));%>");
		    $("#datepicker2").datepicker("setDate", "<%StringHelper.filterHTML(out, request.getParameter("endPayTime"));%>");
		});
	</script>
</body>
</html>